Skip to content

Conversation

relativity-codes
Copy link

add exception handler for this kind of case, because it cause the generation of doc to break

Route::get('/', function () {
return [
'message' => 'Welcome to v2 endpoint',
'version' => '2.0'
];
});

added exception handler for none method action used in a route controller on api

e.g: 

Route::get('/', function () {
    return [
        'message' => 'Welcome to the /v2 endpoint',
        'version' => '2.0'
    ];
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant